import request from '@/utils/request'

// 查询理论法规列表
export function listDoctrine(query) {
  return request({
    url: '/business/doctrine/list',
    method: 'get',
    params: query
  })
}

// 查询理论法规详细
export function getDoctrine(id) {
  return request({
    url: '/business/doctrine/' + id,
    method: 'get'
  })
}

// 新增理论法规
export function addDoctrine(data) {
  return request({
    url: '/business/doctrine',
    method: 'post',
    data: data
  })
}

// 修改理论法规
export function updateDoctrine(data) {
  return request({
    url: '/business/doctrine',
    method: 'put',
    data: data
  })
}

// 删除理论法规
export function delDoctrine(id) {
  return request({
    url: '/business/doctrine/' + id,
    method: 'delete'
  })
}
